# define the C compiler to use
CC = /homeB/minjie.yu/openharmony/OpenHarmony-3.2-Beta5/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang

# define any compile-time flags
CFLAGS = -Wall -g -O --target=arm-linux-ohosmusl -march=armv7-a --sysroot=/homeB/minjie.yu/openharmony/OpenHarmony-3.2-Beta5/out/unionpi_tiger/obj/third_party/musl


# define the C source files
SRCS = main.c aht20-d.c

# define the C object files 
OBJS = $(SRCS:.c=.o)

# define the executable file 
MAIN = aht20-d

.PHONY: depend clean

all:    $(MAIN)
  @echo: $(MAIN) have been compiled

$(MAIN): $(OBJS) 
	$(CC) $(CFLAGS) $(INCLUDES) -o $(MAIN) $(OBJS) $(LFLAGS) $(LIBS)

.c.o:
	$(CC) $(CFLAGS) $(INCLUDES) -c $<  -o $@

clean:
	$(RM) *.o *~ $(MAIN)

depend: $(SRCS)
	makedepend $(INCLUDES) $^
